package com.peak.distribution.manager.agent;

import com.peak.distribution.entity.agent.DisAgent;
import com.peak.spring.boot.api.manager.BaseManager;

/**
 * 代理商的Manager
 * @author Haley Gao
 *
 */
public interface DisAgentManager extends BaseManager<DisAgent> {

	/**
	 * 根据登录用户的ID得到代理商
	 * @param userId
	 * @return 代理商DisAgent
	 */
	DisAgent getByUserId(Integer userId);
	
	/**
	 * 根据手机号码找代理商
	 * @param mobileNo
	 * @return
	 */
	DisAgent getByMobileNo(String mobileNo);
}
